#ifndef MORTSYSTEM_H
#define MORTSYSTEM_H


// Get user home path
#include <wx/utils.h>

// Strings
#include <wx/string.h>

#include "../tools/SkipfishToolHandler.h"

class MortSystem
{
    public:
        MortSystem();
        virtual ~MortSystem();

        static bool CheckConfigDir()
        {
            return wxDirExists( wxGetHomeDir() + wxT("/.mort/") );
        }

        static bool CreateConfigDir()
        {
            return wxMkdir( wxGetHomeDir() + wxT("/.mort/") );
        }

        static wxString GetConfigDirPath()
        {
            return wxGetHomeDir() + wxT("/.mort/");
        }

        static bool CheckProfileDir()
        {
            return wxDirExists( wxGetHomeDir() + wxT("/.mort/profiles/") );
        }

        static bool CreateProfileDir()
        {
            if ( !CheckConfigDir() )
                CreateConfigDir();

            return wxMkdir( wxGetHomeDir() + wxT("/.mort/profiles/") );
        }

        static wxString GetProfileDir()
        {
            return wxGetHomeDir() + wxT("/.mort/profiles/");
        }

        static SkipfishConfigData LoadProfileFile( wxString location );

    protected:
    private:
};

#endif // MORTSYSTEM_H
